﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="GDIT.index1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>广东科学技术职业学院</title>
    <link href="css/index.css" rel="stylesheet" type="text/css" />
    <link href="css/index_imgNew.css" rel="stylesheet" type="text/css" />
    <script src="js/yu.js" type="text/javascript"></script>
    <script src="js/tb.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div class="center">




<div class="head">

    <!--logo开始-->
    <div class="logo">
        <img src="img/index/logo.gif" />
    </div>
    <!--logo结束-->


    <!--导航开始-->
    <div class="guide">
        <div class="firstNav">
            <ul class="first">
                <asp:Repeater ID="rptFirst" runat="server">
                    <ItemTemplate>
                        <li><input type="hidden" value='<%#DataBinder.Eval(Container.DataItem, "OID") %>' /><a href='<%#DataBinder.Eval(Container.DataItem, "LinkAddress") %>' class="guideLink1"><%#DataBinder.Eval(Container.DataItem, "MenuName")%></a></li>
                    </ItemTemplate>
                </asp:Repeater>
                <%--<li><input type="hidden" value="绑定(1)" /><a href="page/general/address.aspx" class="guideLink1">学校概况</a></li>
                <li><input type="hidden" value="绑定(2)" /><a href="http://www.baidu.com" class="guideLink1">招生信息</a></li>
                <li><input type="hidden" value="绑定(3)" /><a href="http://www.baidu.com" class="guideLink1">学校概况</a></li>
                <li><input type="hidden" value="绑定(4)" /><a href="http://www.baidu.com" class="guideLink1">图书馆)</a></li>
                <li><input type="hidden" value="绑定(5)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                <li><input type="hidden" value="绑定(6)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                <li><input type="hidden" value="绑定(7)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>
                <li><input type="hidden" value="绑定(8)" /><a href="http://www.baidu.com" class="guideLink1">学校论坛</a></li>--%>
            </ul>
        </div>
        <div class="secondNav">
            <ul class="second">
                <asp:Repeater ID="rptSecond" runat="server">
                    <ItemTemplate>
                        <li><input type="hidden" value='<%#DataBinder.Eval(Container.DataItem, "Main") %>' /><a href='<%#DataBinder.Eval(Container.DataItem, "LinkAddress") %>' class="guideLink2"><%#DataBinder.Eval(Container.DataItem, "MenuName")%></a></li>
                    </ItemTemplate>
                </asp:Repeater>
                <%--<li><input type="hidden" value="绑定(1)" /><a href="http://www.baidu.com" class="guideLink2">绑定(哈哈哈)</a></li>
                <li><input type="hidden" value="绑定(1)" /><a href="http://www.baidu.com" class="guideLink2">绑定(木木要)</a></li>
                <li><input type="hidden" value="绑定(1)" /><a href="http://www.baidu.com" class="guideLink2">绑定(我爱你)</a></li>
                <li><input type="hidden" value="绑定(2)" /><a href="http://www.baidu.com" class="guideLink2">绑定(好害羞)</a></li>
                <li><input type="hidden" value="绑定(3)" /><a href="http://www.baidu.com" class="guideLink2">绑定(AtHome)</a></li>
                <li><input type="hidden" value="绑定(3)" /><a href="http://www.baidu.com" class="guideLink2">绑定(嗯哈哈)</a></li>
                <li><input type="hidden" value="绑定(4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(不够哦)</a></li>
                <li><input type="hidden" value="绑定(4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(菜单)</a></li>
                <li><input type="hidden" value="绑定(4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(你好笨)</a></li>
                <li><input type="hidden" value="绑定(4)" /><a href="http://www.baidu.com" class="guideLink2">绑定(链接)</a></li>--%>
            </ul>
        </div>
    </div>

    <script type="text/javascript">
        function Ready() {
            var guideLink1s = new Array(); //一级菜单所有链接
            var guideLink2s = new Array(); //二级菜单所有链接
            var allEvents = document.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                if (allEvents[i].className == "guideLink1") {
                    guideLink1s[guideLink1s.length] = allEvents[i];
                } else if (allEvents[i].className == "guideLink2") {
                    guideLink2s[guideLink2s.length] = allEvents[i];
                }
            }

            /*给一级菜单所有的链接付予经过事件*/
            for (var i = 0; i < guideLink1s.length; i++) {
                guideLink1s[i].onmouseover = guideLink1_mouseover;
            }

            /*设置一级菜单的初始显示*/
            guideLink1s[0].style.background = "url(img/index/btnGuideOver.gif) no-repeat";

            /*设置二级菜单的初始显示*/
            for (var i = 0; i < guideLink2s.length; i++) {
                var id1 = guideLink1s[0].parentNode.getElementsByTagName("input")[0].value;
                var id2 = guideLink2s[i].parentNode.getElementsByTagName("input")[0].value;
                if (id1 == id2) {
                    guideLink2s[i].parentNode.style.display = "block";
                } else {
                    guideLink2s[i].parentNode.style.display = "none";
                }
            }

            /*设置一级菜单的ul的宽度*/
            var attribute = GetCurrentStyle(guideLink1s[0], "width");//长度值
            var width = parseInt(attribute.substring(0, attribute.length - 2), 10);//长度数
            guideLink1s[0].parentNode.parentNode.style.width = width * guideLink1s.length + "px";

            /*设置二级菜单的ul的宽度*/
            SetSecondUlWidth(guideLink2s);
        }
        Ready();

        /*一级链接的鼠标经过事件*/
        function guideLink1_mouseover() {
            var guideLink1s = new Array(); //一级菜单所有链接
            var guideLink2s = new Array(); //二级菜单所有链接
            var allEvents = document.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                if (allEvents[i].className == "guideLink1") {
                    guideLink1s[guideLink1s.length] = allEvents[i];
                } else if (allEvents[i].className == "guideLink2") {
                    guideLink2s[guideLink2s.length] = allEvents[i];
                }
            }

            /*改变一级菜单的当前链接的状态*/
            for (var i = 0; i < guideLink1s.length; i++) {
                guideLink1s[i].style.background = "";
            }
            this.style.background = "url(img/index/btnGuideOver.gif) no-repeat";

            /*控制二级菜单的显示与否*/
            for (var i = 0; i < guideLink2s.length; i++) {
                if (GetId(this) == GetId(guideLink2s[i])) {
                    guideLink2s[i].parentNode.style.display = "block";
                } else {
                    guideLink2s[i].parentNode.style.display = "none";
                }
            }

            /*设置二级菜单的ul的宽度*/
            SetSecondUlWidth(guideLink2s);
        }

        /*获取隐藏的id*/
        function GetId(guideLink) {
            return guideLink.parentNode.getElementsByTagName("input")[0].value;
        }

        /*获取标签的样式*/
        function GetCurrentStyle(obj, attribute) {
            return obj.currentStyle ? obj.currentStyle[attribute] : document.defaultView.getComputedStyle(obj, false)[attribute];
        }

        /*设置二级菜单的ul的宽度*/
        function SetSecondUlWidth(guideLink2s) {
            var lis = new Array();
            for (var i = 0; i < guideLink2s.length; i++) {
                if (guideLink2s[i].parentNode.style.display == "block") {
                    lis[lis.length] = guideLink2s[i].parentNode;
                }
            }
            var attribute = GetCurrentStyle(guideLink2s[0], "width");
            var width = parseInt(attribute.substring(0, attribute.length - 2), 10);
            guideLink2s[0].parentNode.parentNode.style.width = width * lis.length + "px";
        }

    </script>
    <!--导航结束-->

</div>




<div style=" height:450px; margin-top:20px; position:relative;">
    
    <!--大图片开始-->
    <div class="imgBig"></div>
    <!--大图片结束-->
        
        
    <!--快速链接开始-->
    <div class="fastLink">
        <ul>
            <li class="hiddenLi">
                <select size="1" onchange="javascript:window.location.href=this.value;" class="hiddenSelect">
                    <%--<option class='<%#Eval("链接类型名称") %>' value='<%#Eval("链接地址") %>'><%#Eval("链接名称") %></option>--%>
                    <%--<option class="first" value="http://www.baidu.com">一</option>
                    <option class="second" value="http://www.baidu.com">二</option>
                    <option class="third" value="http://www.baidu.com">三</option>
                    <option class="forth" value="http://www.baidu.com">四</option>
                    <option class="fifth" value="http://www.baidu.com">五</option>--%>
                    <asp:Repeater ID="LinkRepeater" runat="server">
                        <ItemTemplate>
                            <option class='<%#DataBinder.Eval(Container.DataItem, "LinkTypeName") %>' value='<%#DataBinder.Eval(Container.DataItem, "LinkAddress") %>'><%#DataBinder.Eval(Container.DataItem, "LinkName")%></option>
                        </ItemTemplate>
                    </asp:Repeater>
                </select>
            </li>
        </ul>
    </div>

    <script type="text/javascript">
        function Ready() {
            var fastLinkNav = GetElementsByClass("fastLink")[0];
            var fastLinkUl = fastLinkNav.getElementsByTagName("UL")[0];
            var hiddenSelect = fastLinkNav.getElementsByTagName("select")[0];
            var options = hiddenSelect.getElementsByTagName("option");
            var html = "";

            html += "<li><select size='1' onchange='javascript:window.location.href=this.value;'>";
            for (var i = 0; i < options.length; i++) {
                if (i == 0) {
                    html += "<option value='javascript:void(0);'>--" + options[i].className + "--</option>";
                    html += "<option value='" + options[i].value + "'>" + options[i].innerHTML + "</option>";
                }else if (options[i].className == options[i - 1].className) {
                    html += "<option value='" + options[i].value + "'>" + options[i].innerHTML + "</option>";
                } else if (options[i].className != options[i - 1].className) {
                    html += "</select></li><li><select size='1' onchange='javascript:window.location.href=this.value;'>";
                    html += "<option value='javascript:void(0);'>--" + options[i].className + "--</option>";
                    html += "<option value='" + options[i].value + "'>" + options[i].innerHTML + "</option>";
                }
            }
            html += "</select></li>";
            fastLinkUl.innerHTML += html;

            //alert(hiddenSelect.parentNode.id);
            GetElementsByClass("hiddenLi")[0].style.display = "none";

        }
        Ready();

        function GetElementsByClass(className) {
            var events = new Array();
            var allEvents = document.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                var classNames = allEvents[i].className.split(" ");
                for (var j = 0; j < classNames.length; j++) {
                    if (classNames[j] == className) {
                        events[events.length] = allEvents[i];
                    }
                }
            }
            return events;
        }
    </script>
    <!--快速链接结束-->



    <!--图片链接开始-->
    <div class="imgLink">
        <ul>
            <!--四个-->
            <%--<li><a href='<%#Eval("链接地址") %>'><img src='<%#Eval("图片地址") %>' /></a></li>--%>
            <%--<li><a href=""><img src="http://www.wanmei.com/images/bg2011/mhzx2_logo120502.gif" /></a></li>
            <li><a href=""><img src="http://www.wanmei.com/images/bg2011/mhzx2_logo120502.gif" /></a></li>
            <li><a href=""><img src="http://www.wanmei.com/images/bg2011/mhzx2_logo120502.gif" /></a></li>
            <li><a href=""><img src="http://www.wanmei.com/images/bg2011/mhzx2_logo120502.gif" /></a></li>--%>
            <asp:Repeater ID="ImageRepeater" runat="server">
                <ItemTemplate>
                    <li><a href='<%#DataBinder.Eval(Container.DataItem, "LinkAddress") %>'><img src='<%#DataBinder.Eval(Container.DataItem, "PicPath") %>' /></a></li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
    </div>
    <!--图片链接结束-->

    <!--搜索开始-->
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div class="search">
        <asp:TextBox ID="txtSearch" runat="server" CssClass="txt"></asp:TextBox>
        <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" MinimumPrefixLength="1" CompletionSetCount="10" EnableCaching="true"
                ServiceMethod="GetHotSearchByKeywords" ServicePath="webservice/SearchKeyWordService.asmx"
                TargetControlID="txtSearch">
        </cc1:AutoCompleteExtender>
        <asp:LinkButton ID="btnSearch" runat="server" CssClass="btn"></asp:LinkButton>
    </div>

    <script type="text/javascript">
        function Ready() {
            var btnSearch = GetElementsByClass("btn")[0];
            var txtSearch = GetElementsByClass("txt")[0];

            btnSearch.onmouseover = btnSearch_mouseover;
            btnSearch.onmouseout = btnSearch_onmouseout;

            txtSearch.value = "站内搜索";
            txtSearch.style.color = "#ccc";
            txtSearch.onmousedown = txtSearch_onmousedown;
        }
        Ready();

        function btnSearch_mouseover() {
            this.parentNode.style.background = "url(img/index/searchOver.gif) no-repeat";
        }

        function btnSearch_onmouseout() {
            this.parentNode.style.background = "url(img/index/search.gif) no-repeat";
        }

        function txtSearch_onmousedown() {
            if (this.value == "站内搜索") {
                this.value = "";
                this.sty.color = "#666";
            }
        }
        
        function GetElementsByClass(className) {
            var events = new Array();
            var allEvents = document.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                var classNames = allEvents[i].className.split(" ");
                for (var j = 0; j < classNames.length; j++) {
                    if (classNames[j] == className) {
                        events[events.length] = allEvents[i];
                    }
                }
            }
            return events;
        }
    </script>
    <!--搜索结束-->


    <!--通知公告开始-->
    <div class="bulletin">
        <ul>
            <li class="title"><span style=" float:left;">通知公告</span><a href="page/second.aspx?param=notice_list_bulletin">更多...</a></li>
            <asp:Repeater ID="BulletinRepeater" runat="server">
                <ItemTemplate>
                    <li><a href='page/second.aspx?param=notice_article_department_<%#DataBinder.Eval(Container.DataItem, "OID") %>'>[党办]&nbsp;&nbsp;</a><a href='page/second.aspx?param=notice_article_bulletin_<%#DataBinder.Eval(Container.DataItem, "OID") %>' class="header"><%#DataBinder.Eval(Container.DataItem, "Title")%></a><input type="hidden" value='<%#DataBinder.Eval(Container.DataItem, "Important")%>' class="isImportant" /><input type="hidden" value='<%#DataBinder.Eval(Container.DataItem, "Top")%>' class="isTop" /><span style=" float:right;"><%#DataBinder.Eval(Container.DataItem, "PublishDate")%></span></li>
                </ItemTemplate>
            </asp:Repeater>
            <%--<li><a href='page/second.aspx?param=notice_article_department_<%#Eval("文章id") %>'>[党办]&nbsp;&nbsp;</a><a href='page/second.aspx?param=notice_article_bulletin_<%#Eval("文章id") %>' class="header"><%#Eval("文章标题") %></a><input type="hidden" value='<%#Eval("是否重点") %>' class="isImportant" /><input type="hidden" value='<%#Eval("是否置顶") %>' class="isTop" /><span style=" float:right;"><%#Eval("发布时间") %></span></li>--%>
            <%--<li><a href="page/second.aspx?param=notice_article_department_1">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_bulletin_1" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="否" class="isImportant" /><input type="hidden" value="是" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_2">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_bulletin_1" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="否" class="isImportant" /><input type="hidden" value="是" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_3">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_bulletin_1" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="否" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_4">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_bulletin_1" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="否" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_5">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_bulletin_1" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="是" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_6">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_bulletin_1" class="header">关于学校党政领导班子成员在在在在在在在在在在在在在在在在在中中中中吕中中中中中中</a><input type="hidden" value="否" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>--%>
        </ul>
    </div>
    <%--<div class="all">
        <div class="top">
            <div class="content">
                <div class="logo"><img alt="广科Logo" src="img/index_logo.png" /></div>
                <div class="other">
                    <div class="link"><a href="#">加入收藏</a>|<a href="#">联系我们</a></div>
                    <div class="search">
                      <form method="post" action="" name="search_form" runat="server" class="search_form fl">
                      <asp:ScriptManager ID="ScriptManager1" runat="server" />
                      <asp:TextBox ID="search_text" runat="server" CssClass="search_text"></asp:TextBox>
                      <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" runat="server" MinimumPrefixLength="1" CompletionSetCount="10" EnableCaching="true"
                        ServiceMethod="GetHotSearchByKeywords" ServicePath="webservice/SearchKeyWordService.asmx" TargetControlID="search_text">
                      </cc1:AutoCompleteExtender>
		              <input type="submit" name="submit" class="search_submit" value="搜索" />
		                  <ul class="search_sort hide">
			                 <li><a href="###" class="current">搜<span class="key">“交互设计概论”</span>相关学校?</a></li>
			                 <li><a href="###">搜<span class="key">“交互设计概论”</span>相关课程?</a></li>
			                 <li><a href="###">搜<span class="key">“交互设计概论”</span>相关问题?</a></li>
		                  </ul>
	                   </form>
                    </div>
                </div>
            </div>
        </div>--%>
    <script type="text/javascript">
        function Ready() {
            var bulletinNav = GetElementsByClass("bulletin")[0];
            var lis = bulletinNav.getElementsByTagName("LI");

            /*置顶通知的样式*/
            var hiddenImportants = GetElementsByClass2(bulletinNav, "isTop");
            for (var i = 0; i < hiddenImportants.length; i++) {
                if (hiddenImportants[i].value == "是") {
                    var header = GetElementsByClass2(hiddenImportants[i].parentNode, "header")[0];
                    header.innerHTML = "[顶]" + header.innerHTML;
                }
            }

            /*重点通知的样式*/
            var hiddenTops = GetElementsByClass2(bulletinNav, "isImportant");
            for (var i = 0; i < hiddenTops.length; i++) {
                if (hiddenTops[i].value == "是") {
                    var header = GetElementsByClass2(hiddenImportants[i].parentNode, "header")[0];
                    header.style.color = "#f00";
                }
            }

            /*控制标题的长度*/
            var headers = GetElementsByClass2(bulletinNav, "header");
            for (var i = 0; i < headers.length; i++) {
                if (GetLength(headers[i].innerHTML) > 52) {
                    headers[i].innerHTML = headers[i].innerHTML.substring(0, 26) + "...";
                }
            }
        }
        Ready();

        function GetElementsByClass(className) {
            var events = new Array();
            var allEvents = document.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                var classNames = allEvents[i].className.split(" ");
                for (var j = 0; j < classNames.length; j++) {
                    if (classNames[j] == className) {
                        events[events.length] = allEvents[i];
                    }
                }
            }
            return events;
        }

        function GetElementsByClass2(ev, className) {
            var events = new Array();
            var allEvents = ev.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                var classNames = allEvents[i].className.split(" ");
                for (var j = 0; j < classNames.length; j++) {
                    if (classNames[j] == className) {
                        events[events.length] = allEvents[i];
                    }
                }
            }
            return events;
        }

        /*获取字符串的字节数*/
        function GetLength(s) {
            var l = 0;
            var a = s.split("");
            for (var i = 0; i < a.length; i++) {
                if (a[i].charCodeAt(0) < 299) {
                    l++;
                } else {
                    l += 2;
                }
            }
            return l;
        }
    </script>
    <!--通知公告结束-->


    <!--校园资讯开始-->
    <div class="information">
        <ul>
            <li class="title"><span style=" float:left;">校园资讯</span><a href="page/second.aspx?param=notice_list_information">更多...</a></li>
            <asp:Repeater ID="CollegeRepeater" runat="server">
                <ItemTemplate>
                    <li><a href='page/second.aspx?param=notice_article_department_<%#DataBinder.Eval(Container.DataItem, "OID") %>'>[党办]&nbsp;&nbsp;</a><a href='page/second.aspx?param=notice_article_information_<%#DataBinder.Eval(Container.DataItem, "OID") %>' class="header"><%#DataBinder.Eval(Container.DataItem, "Title")%></a><input type="hidden" value='<%#DataBinder.Eval(Container.DataItem, "Important")%>' class="isImportant" /><input type="hidden" value='<%#DataBinder.Eval(Container.DataItem, "Top")%>' class="isTop" /><span style=" float:right;"><%#DataBinder.Eval(Container.DataItem, "PublishDate")%></span></li>
                </ItemTemplate>
            </asp:Repeater>
<%--            <li><a href="page/second.aspx?param=notice_article_department_1">[党办]&nbsp;&nbsp;</a><a href="page/second.aspx?param=notice_article_information_1" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="是" class="isImportant" /><input type="hidden" value="是" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_2">[党办]&nbsp;&nbsp;</a><a href="" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="是" class="isImportant" /><input type="hidden" value="是" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_3">[党办]&nbsp;&nbsp;</a><a href="" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="是" class="isImportant" /><input type="hidden" value="是" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_4">[党办]&nbsp;&nbsp;</a><a href="" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="是" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_5">[党办]&nbsp;&nbsp;</a><a href="" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="否" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>
            <li><a href="page/second.aspx?param=notice_article_department_6">[党办]&nbsp;&nbsp;</a><a href="" class="header">关于学校党政领导班子成员...</a><input type="hidden" value="是" class="isImportant" /><input type="hidden" value="否" class="isTop" /><span style=" float:right;">2012-7-3</span></li>--%>
        </ul>
    </div>

    <script type="text/javascript">
        function Ready() {
            var bulletinNav = GetElementsByClass("information")[0];
            var lis = bulletinNav.getElementsByTagName("LI");

            /*置顶通知的样式*/
            var hiddenImportants = GetElementsByClass2(bulletinNav, "isTop");
            for (var i = 0; i < hiddenImportants.length; i++) {
                if (hiddenImportants[i].value == "是") {
                    var header = GetElementsByClass2(hiddenImportants[i].parentNode, "header")[0];
                    header.innerHTML = "[顶]" + header.innerHTML;
                }
            }

            /*重点通知的样式*/
            var hiddenTops = GetElementsByClass2(bulletinNav, "isImportant");
            for (var i = 0; i < hiddenTops.length; i++) {
                if (hiddenTops[i].value == "是") {
                    var header = GetElementsByClass2(hiddenImportants[i].parentNode, "header")[0];
                    header.style.color = "#f00";
                }
            }

            /*控制标题的长度*/
            var headers = GetElementsByClass2(bulletinNav, "header");
            for (var i = 0; i < headers.length; i++) {
                if (GetLength(headers[i].innerHTML) > 52) {
                    headers[i].innerHTML = headers[i].innerHTML.substring(0, 26) + "...";
                }
            }
        }
        Ready();

        function GetElementsByClass(className) {
            var events = new Array();
            var allEvents = document.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                var classNames = allEvents[i].className.split(" ");
                for (var j = 0; j < classNames.length; j++) {
                    if (classNames[j] == className) {
                        events[events.length] = allEvents[i];
                    }
                }
            }
            return events;
        }

        function GetElementsByClass2(ev, className) {
            var events = new Array();
            var allEvents = ev.getElementsByTagName("*");
            for (var i = 0; i < allEvents.length; i++) {
                var classNames = allEvents[i].className.split(" ");
                for (var j = 0; j < classNames.length; j++) {
                    if (classNames[j] == className) {
                        events[events.length] = allEvents[i];
                    }
                }
            }
            return events;
        }

        /*获取字符串的字节数*/
        function GetLength(s) {
            var l = 0;
            var a = s.split("");
            for (var i = 0; i < a.length; i++) {
                if (a[i].charCodeAt(0) < 299) {
                    l++;
                } else {
                    l += 2;
                }
            }
            return l;
        }
    </script>
    <!--校园资讯结束-->


    <!--新闻图片开始-->
    <div class="imgNew">
        <div class="title">动态新闻</div>

        <div id="MainPromotionBanner">
            <div id="SlidePlayer">
                <ul class="Slides">
                    <%--<li><a target="_blank" href='<%#Eval("链接地址") %>'><img src='<%#Eval("图片路径") %>'></a></li>--%>
                    <%--<li><a target="_blank" href="http://www.chinaz.com/"><img src="img/error/404.gif"></a></li>
                    <li><a target="_blank" href="http://www.chinaz.com/"><img src="img/error/404.gif"></a></li>
                    <li><a target="_blank" href="http://www.chinaz.com/"><img src="img/error/404.gif"></a></li>
                    <li><a target="_blank" href="http://www.chinaz.com/"><img src="img/error/404.gif"></a></li>
                    <li><a target="_blank" href="http://www.chinaz.com/"><img src="img/error/404.gif"></a></li>--%>
                    <asp:Repeater ID="NewsRepeater" runat="server">
                        <ItemTemplate>
                            <li><a target="_blank" href='<%#DataBinder.Eval(Container.DataItem, "LinkAddress") %>'><img src='<%#DataBinder.Eval(Container.DataItem, "PicPath") %>'></a></li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <script type="text/javascript">
                TB.widget.SimpleSlide.decoration('SlidePlayer', { eventType: 'mouse', effect: 'scroll' });
            </script>
        </div>

    </div>
    <!--新闻图片结束-->
</div>




<!--页脚开始-->
<div class="foot">
    <p>粤ICP备05008841号  广东科学技术职业学院 版权所有 Copyright© 2003-2011, All Right Reserved</p>
    <p>广州校区地址：广州市天河区科华街351号(邮编:510640) 珠海校区地址：珠海市金湾区珠海大道南侧(邮编：519090)</p>
    <p>邮箱：webmaster@gdit.edu.cn　电话：(广州)020-85297309 (珠海)0756-7796288　传真：020-85291714</p>
    <p><a href="page/manage/login.aspx" class="manage">后台管理</a></p>
</div>
<!--页脚结束-->




</div>
</form>
</body>
</html>


<!--页面加载完后修改链接的地址开始-->
<script type="text/javascript">
    function Ready() {
        var links = document.getElementsByTagName("A");
        for (var i = 0; i < links.length; i++) {
            ChangeAddress(links[i]);
        }
    }
    Ready();

    function ChangeAddress(parmElement) {
        if ((parmElement.href.indexOf("life/") > 0 || parmElement.href.indexOf("notice/") > 0 || parmElement.href.indexOf("general/") > 0) && parmElement.href.indexOf(".aspx") > 0) {
            var strs = parmElement.href.split("/");
            var son = strs[strs.length - 1].replace(".aspx", "");
            var left = strs[strs.length - 2];
            //parmElement.href = "page/second.aspx?address=" + address + "&left=" + left;
            parmElement.href = "page/second.aspx?parm=" + left + "_" + son;
        }
    }
    </script>
<!--页面加载完后修改链接的地址结束-->
    </div>
</body>
</html>
